from django.db import models

# Create your models here.

class Book(models.Model):

    name = models.CharField(max_length=32, verbose_name='书名')
    price = models.DecimalField(max_digits=10, decimal_places=2, verbose_name='价格')
    createTime = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')

    class Meta:
        verbose_name = "书籍"
        verbose_name_plural = verbose_name



    
